import Home from '_v/Home';
import Detail from '_v/Details';
import History from '_v/History';
import DetailPool from '_v/DetailPool';
import HoldingRecord from '_v/HoldingRecord.vue';
import PortfolioItem from '@/views/portfolio/PortfolioItem.vue';
import PortfolioPosition from '@/views/portfolio/PortfolioPosition.vue';

export default [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      // config current page title
      title: '高端股池',
    },
  },
  // 旧版股池详情页路由
  {
    path: '/detail',
    name: 'Detail',
    component: Detail,
  },
  // 新版股池详情页路由
  {
    path: '/details',
    name: 'Details',
    component: DetailPool,
  },
  // 新版股池详情页路由
  {
    path: '/detailsServicePack',
    name: 'DetailsServicePack ',
    component: () => import('@/views/servicePack/Details.vue'),
  },
  // ETF组合详情页
  {
    path: '/portfolio',
    name: 'portfolio',
    component: PortfolioItem,
  },
  {
    path: '/position',
    name: 'position',
    component: PortfolioPosition,
  },
  {
    path: '/history',
    name: 'History',
    component: History,
  },
  {
    path: '/holding',
    name: 'Holding',
    component: HoldingRecord,
  },
  {
    path: '*',
    redirect: '/',
  },
];
